aside,
form,
div {
	&::-webkit-scrollbar-track {
		border-radius: 0;
		background-color: rgba(0, 0, 0, 0.1);
	}
	&::-webkit-scrollbar {
		-webkit-appearance: none;
		width: 6px;
		height: 6px;
	}
	&::-webkit-scrollbar-thumb {
		cursor: pointer;
		border-radius: 2px;
		transition: color 0.2s ease;
		background-color: rgba(0, 0, 0, 0.15);
	}
}

a {
	color: var(--primary);
	text-decoration: none;
}

input:invalid {
	outline: none;
	border-color: initial;
}

input[aria-hidden='true'] {
	display: none !important;
}

.wrapper {
	width: 100%;
	max-width: 1340px;
	min-width: 1340px;
	margin: 0 auto;
	box-sizing: border-box;
}

.iconfont {
	font-size: inherit;
	& + span {
		margin-left: 5px;
	}
}

.el-empty {
	margin: 5% auto;
	text-align: center;
	.el-empty__image {
		margin: 0 auto 10px;
	}
}

.el-dialog {
	margin-bottom: 0;
	.el-dialog__header {
		padding: 16px;
		border-bottom: solid 1px #e5e5e5;
		flex-shrink: 0;
	}
	.el-dialog__headerbtn {
		right: 15px;
	}
	.el-dialog__footer {
		text-align: center;
		padding: 15px;
		border-top: solid 1px #e5e5e5;
		flex-shrink: 0;
	}
	.el-dialog__body {
		display: flex;
		padding: 15px;
		overflow: auto;
		max-height: calc(70vh - 118px);
	}
	&:not(.el-dialog__footer) {
		.el-dialog__body {
			max-height: calc(70vh - 55px);
		}
	}
	&.is-fullscreen {
		display: flex;
		flex-direction: column;
		.el-dialog__body {
			flex: 1;
			max-height: none;
		}
	}
}

.el-drawer {
	.el-drawer__header {
		margin: 0;
		padding: 15px;
		border-bottom: solid 1px #dcdfe6;
		span[role='heading'] {
			font-size: 16px;
			font-weight: bold;
			color: #606266;
		}
	}
}

.el-tree {
	.el-tree-node__content {
		padding-bottom: 0;
		height: 30px;
		padding-right: 15px;
	}
	.el-select-dropdown__wrap {
		max-height: 300px;
		line-height: 1;
		scroll-margin-top: 0;
	}
}

.el-radio {
	display: inline-flex;
	align-items: center;
	.el-radio__input {
		font-size: 0;
	}
	.el-radio__label {
		line-height: 1;
	}
}

.el-checkbox {
	display: inline-flex;
	align-items: center;
	.el-checkbox__input {
		font-size: 0;
	}
	.el-checkbox__label {
		line-height: 1;
	}
}

.el-tabs--top.custom_top {
	.el-tabs__header {
		position: relative;
		margin-bottom: 0;
	}
	.el-tabs__new-tab {
		position: absolute;
		top: 0;
		right: 0;
		margin: 14px;
		z-index: 2;
	}
	.el-tabs__nav {
		display: flex;
	}
	.el-tabs__item {
		display: flex;
		align-items: center;
		height: 40px;
		// line-height: 48px;
		padding: 0 16px;
		&.is-top:nth-child(2) {
			padding: 0 16px;
		}
		&.is-top:last-child {
			padding: 0 16px;
		}
		&.is-active {
			background-color: #f5f7fa;
		}
	}
	.el-tabs__active-bar {
		padding: 0 16px;
		margin-left: -16px;
	}
	.el-tabs__nav-wrap {
		&::after {
			height: 1px;
			background-color: #f5f7fa;
		}
	}
}

.is-controls-right {
	.el-input {
		width: 100% !important;
	}
	.el-input__inner {
		text-align: left;
	}
}

.custom_full_loading {
	.el-loading-spinner {
		margin-top: -31px;
		.el-icon-loading {
			font-size: 36px;
			color: #fff;
		}
		.el-loading-text {
			color: #fff;
		}
	}
}

.sw_system_container {
	display: flex;
	flex-direction: column;
	padding: 16px;
	height: 100%;
	box-sizing: border-box;
	background-color: #fff;
}

.sw_section_wrapper {
	display: flex;
	flex-direction: column;
	padding: 16px;
	height: 100%;
	box-sizing: border-box;
}

.sw_query_form {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 6px;
	.el-form {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}
	.el-form-item {
		margin-bottom: 10px;
		&:last-child {
			margin-right: 0;
		}
	}
	.el-form-item__content {
		display: flex;
		align-items: center;
	}
	.el-input {
		display: flex;
		align-items: center;
	}
	.el-radio {
		margin-right: 16px;
	}
	.button {
		display: flex;
		margin-bottom: 10px;
		.el-button {
			font-size: 14px;
			padding: 8px 12px;
		}
		.el-divider {
			height: auto;
			margin: 0 16px;
		}
	}
}

.sw_table_container {
	flex: 1;
	// border: solid 1px #ebeef5;
	border-bottom: none;
	overflow: hidden;
	.el-table {
		width: 100%;
	}
	.el-dropdown {
		margin-left: 10px;
	}
	.el-table__header th {
		color: #303133;
		background-color: var(--primary-background-plain-disabled);
	}
	&:has(.el-empty) {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.el-empty__description {
		color: #909399;
	}
}
.sw-pagination.page {
	margin-top: 16px;
}

.sw_platform_settings {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	.el-tabs.custom_top {
		flex-shrink: 0;
		margin-left: 16px;
	}
	.content {
		flex: 1;
		overflow: auto;
		padding: 32px 16px 10px;
	}
	.button {
		flex-shrink: 0;
		padding: 16px;
		border-top: solid 1px #f5f7fa;
		text-align: right;
	}
	.config {
		flex: 1;
		padding: 16px;
		overflow: hidden;
		dl {
			padding: 5px 0;
		}
		dt {
			font-weight: bold;
		}
		dd.form {
			display: flex;
			align-items: center;
			padding: 5px 0;
			.el-button {
				margin-left: 10px;
			}
		}
		.image_radio {
			display: inline-block;
			text-align: center;
			.el-image {
				display: block;
				width: 160px;
				border: solid 1px #ccc;
				margin-bottom: 10px;
			}
			& + .image_radio {
				margin-left: 16px;
			}
		}
		dd.des {
			color: #bbb;
		}
	}
}

.batch_button {
	&.el-button-group {
		float: left;
		padding: 0 10px;
		margin-left: 15px;
		border-radius: 12px;
		background-color: var(--primary-background-hover);
	}
	.el-button {
		padding: 5px;
	}
}

.resource_context_menu {
	padding: 0 !important;
	margin-left: 1px;
	overflow: hidden;
	.menu_item__available {
		line-height: 28px;
		&:hover {
			background: var(--primary-hover);
			color: #fff;
		}
	}
	.menu_item_label {
		white-space: nowrap;
	}
}

.library_tree_wrapper {
	max-height: calc(100vh - 240px);
	overflow: auto;
	.el-tree-node__expand-icon {
		font-size: 18px;
	}
}

.sw_dialog_form {
	flex: 1;
	overflow: hidden;
}

.sw_section_container {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px;
	overflow: hidden;
	border-radius: 4px;
	box-sizing: border-box;
	background-color: #fff;
}

.index_table_wrapper {
	flex: none;
	width: 100%;
	border: solid 1px #ebeef5;
	border-bottom: none;
	.el-table__cell {
		font-size: 16px;
		.tag {
			margin-left: 6px;
			&:first-child {
				margin-left: 0;
			}
		}
	}
	th.el-table__cell {
		line-height: 1;
		background-color: #f6f8fa;
		.cell {
			line-height: 20px;
		}
	}
	.el-table__fixed-right-patch {
		background-color: #f6f8fa;
	}
	.el-table__empty-block {
		min-height: 57px;
	}
	.el-table__empty-text {
		line-height: 57px;
	}
	.el-button {
		font-size: 16px;
		padding: 6px 0;
	}
	a.link {
		color: #606266;
		line-height: 25px;
		&:hover {
			color: var(--primary-hover);
			text-decoration: underline;
		}
	}
	span.link {
		color: #606266;
		line-height: 25px;
	}
}

.data_detail_wrapper {
	padding-bottom: 1px;

	.item {
		display: flex;
		flex-wrap: wrap;
		font-size: 18px;
		line-height: 36px;
		padding: 6px 0;
	}

	.label {
		min-width: 130px;
		font-weight: bold;
		flex-shrink: 0;
	}

	.content {
		display: flex;
		align-items: center;

		p.sep:not(:first-child)::before {
			content: '/';
			padding: 0 8px;
		}

		a {
			margin-right: 10px;
		}

		.el-button.sign,
		.el-button.down {
			display: block;
			font-size: 18px;
			padding: 8px 0;
		}
	}

	.image {
		width: 240px;
		img {
			display: block;
			width: 100%;
		}
	}

	.feedback {
		width: 100%;
		dl {
			color: #606266;
			font-size: 16px;
			margin-top: 16px;
			border: solid 1px #e4e7ed;
			&:first-child {
				margin-top: 10px;
			}
		}
		dt {
			display: flex;
			align-items: center;
			justify-content: space-between;
			line-height: 1;
			padding: 10px 16px;
			background-color: #f4f4f5;
			border-bottom: solid 1px #e4e7ed;
		}
		dd {
			padding: 16px;
			p {
				text-indent: 2em;
			}
			img {
				display: block;
				max-width: 100%;
			}
		}
		.el-rate__icon {
			font-size: 20px;
		}
		.el-rate__text {
			font-size: 16px;
		}
	}

	.el-table__header {
		th {
			line-height: 1;
		}
	}
}

.date_picker_wrapper {
	.el-range-input {
		font-size: 15px;
	}
}

.query_select_wrapper {
	width: 120px;
	font-size: 15px;
}

@media print {
	.index_table_wrapper {
		box-sizing: border-box;
		border-collapse: collapse !important;
	}
	.el-table {
		table-layout: auto !important;
		box-sizing: border-box !important;
	}
	.el-table__header {
		width: 100% !important;
	}
	.el-table__body {
		width: 100% !important;
		table-layout: auto !important;
	}
	.performance_item {
		width: 100% !important;
		border-collapse: collapse !important;
	}
}
